package com.oracle.oa.biz;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.oracle.oa.util.PageBean;
import com.oracle.oa.util.PageBean2;

public interface BaseBiz {
	
	public List getAll(Class clzz);
	public Object getById(Class clzz,java.io.Serializable id);
	public List getByProperty(Class clzz,String propertyName,Object propertyValue);
	public List getAllByHQL(String sql);
	public List getAllByDetachedCriteria(DetachedCriteria dc);
	
	public void save(Object obj);
	public void update(Object obj);
	public void delete(Object obj);
	
	public void splitPage1(PageBean pb,DetachedCriteria dc,Class clz);
	
	public void fenye(DetachedCriteria dc,PageBean2 pb,Class clz);
}
